package bookManage;

import java.util.Scanner;
import java.util.TreeSet;

public class Book {

	static TreeSet<BookModel> books = new TreeSet<BookModel>();

	static Scanner scanner = new Scanner(System.in);

	public void init() {
		BookModel bookModel1 = new BookModel();
		bookModel1.setId(1);
		bookModel1.setName("三国演义");
		bookModel1.setRecordNum(465);
		Book.books.add(bookModel1);

		BookModel bookModel2 = new BookModel();
		bookModel2.setId(2);
		bookModel2.setName("水浒传");
		bookModel2.setRecordNum(333);
		Book.books.add(bookModel2);

		BookModel bookModel3 = new BookModel();
		bookModel3.setId(3);
		bookModel3.setName("红楼梦");
		bookModel3.setRecordNum(123);
		Book.books.add(bookModel3);

		BookModel bookModel4 = new BookModel();
		bookModel4.setId(4);
		bookModel4.setName("西游记");
		bookModel4.setRecordNum(666);
		Book.books.add(bookModel4);

	}
}
